<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Axios练习</title>
	</head>
	<body>
		<h1>Axios远程调用练习</h1>
		<script src="../js/axios.js"></script>
		<script>
			/* GET请求的方式与Delete的方式一致 */
			//1.删除name=""的数据，使用params 对象的方式实现
			//2.删除name="" sex="" 使用restFul风格实现
			
			let user = {
				name : '加'
			}
			axios.delete("http://localhost:8090/DeUserName",{
				params: user}).then(result => {
					console.log(result.data)
				})
			
			axios.delete("http://localhost:8090/user/老王/男")
				.then(result => {
					console.log(result.data)
				})
			
			
			
			
		</script>
		
	</body>
</html>
